package com.ww.spark.trys

import org.apache.spark.{SparkConf, SparkContext}
import org.apache.spark.rdd.RDD
import org.apache.spark.sql.catalog.{Database, Table}
import org.apache.spark.sql.{DataFrame, Dataset, SparkSession, catalog}

object SQL01_basic {
  def main(args: Array[String]): Unit = {
    val conf = new SparkConf().setMaster("local").setAppName("sql01")

    val sc = new SparkContext(conf)
    val dataRDD: RDD[Int] = sc.parallelize(List(1, 2, 3, 4, 5, 5, 5, 5, 9))

    val value: RDD[Int] = dataRDD.map(e => {
      println("map")
      e
    })

    value.filter(e=>{
      println("filter")
      true
    }).count()


  }
}
